package edu.sctu.wulixia.month4and5.day20150526;

import java.util.HashMap;

/**
 * Created by user05 on 2015/5/26.
 */
public class HashMapTest {

    public  HashMap<Integer,String> isHashMap(){
        HashMap<Integer,String> map = new HashMap<>();

        map.put(1,"张三");
        map.put(2,"李四");
        map.put(3,"王五");

        return map;
    }

    public HashMap<Integer,HashMapTest2> isHashMap2(int size){
        HashMap<Integer,HashMapTest2> map2 = new HashMap<>();

        for(int i = 1; i<size; i++){
            map2.put(1,new HashMapTest2());
        }
        return map2;
    }
}
